/**
 * 
 */
package t4j.array;

/**
 * @author sz
 *
 * create time：2012-8-20
 */
public class NewVarArgs {

	void printArray(Object... args){
		for(Object obj : args){
			System.out.println(obj + " ");
		}
		
		System.out.println();
	}
	
	public static void main(String[] args) {
		
		NewVarArgs arg = new NewVarArgs();
		
		arg.printArray(new Integer(47),new Float(3.14), new Double(11.11));
		
		arg.printArray("one","two","dff");
		
		arg.printArray(new A(),new A(),new A());
		
		arg.printArray((Object[])new Integer[]{1,2,3,4});
		
		arg.printArray();
		
	}
}
